package org.msd.model;

import java.util.Arrays;
import java.util.Scanner;

public class Commodity {//房间

    private int commodityid;//房间的id

    private String merchandise;//房间的名字

    private int merchendisetype;//房间的类型

    private double price;//房间价格

    private String person;//房间的状态

    private String house;//房间的内容
    private String imgs;//房间图片


    public void setPrice(double price) {
        this.price = price;
    }

    public double getPrice() {
        return price;
    }

    public int getCommodityid() {
        return commodityid;
    }

    public int getMerchendisetype() {
        return merchendisetype;
    }

    public String getMerchandise() {
        return merchandise;
    }

    public void setCommodityid(int commodityid) {
        this.commodityid = commodityid;
    }

    public void setMerchendisetype(int merchendisetype) {
        this.merchendisetype = merchendisetype;
    }

    public void setMerchandise(String merchandise) {
        this.merchandise = merchandise;
    }

    public String getHouse() {
        return house;
    }

    public void setHouse(String house) {
        this.house = house;
    }

    public String getPerson() {
        return person;
    }

    public void setPerson(String person) {
        this.person = person;
    }

    public String getImgs() {
        return imgs;
    }

    public void setImgs(String imgs) {
        this.imgs = imgs;
    }

    @Override
    public String toString() {
        return "Commodity{" +
                "commodityid=" + commodityid +
                ", merchandise='" + merchandise + '\'' +
                ", merchendisetype=" + merchendisetype +
                ", price=" + price +
                ", person='" + person + '\'' +
                ", house='" + house + '\'' +
                ", imgs='" + imgs + '\'' +
                '}';
    }
}
